/*
 * Port.h
 *
 * Created: 11/13/2012 12:17:25 AM
 *  Author: Hp-Minion
 */ 


#ifndef PORT_H_
#define PORT_H_
/*****************************************************************************************/
/*
	INCLUDES
*/	
		#include "General.h"

/*****************************************************************************************/
/*
	DEFINES
*/	
				

/*****************************************************************************************/
/*
	VARIABLES
*/	
		enum enInOut
		{
			INPUT = 0,
			OUTPUT = 1,
			NOTHING = 2
		};

		enum enLevel
		{
			LOW = 0,
			HIGH = 1,
			OTHER = 2
		};

/*****************************************************************************************/
/*
	FUNCTION PROTOTYPES
*/	
		extern void PinMode(unsigned int , char , enum enInOut);
		extern void DigitalWrite(unsigned int , enum enLevel);
		extern unsigned int DigitalRead(unsigned int );
		extern void AnalogWrite(unsigned int , enum enLevel );
		extern unsigned int AnalogRead(unsigned int );
		extern unsigned long map(unsigned long , unsigned long ,unsigned long, unsigned long , unsigned long );
		extern unsigned int FromASCII(unsigned char );


/*****************************************************************************************/
#endif /* PORT_H_ */